package com.ikun.common.tree;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName TreeNode
 * @Description: 树节点类
 * @CreateDate: 2024/4/3 10:57
 */
@Data
@ApiModel("树形实体类")
public abstract class TreeNode implements Serializable {
    private Long id;

    @ApiModelProperty("父节点")
    private Long pid;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("子节点")
    private List<TreeNode> children;


}
